package com.zhu.tool_test.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zhu.tool_test.entity.Device;
import com.zhu.tool_test.response.DataFactory;
import com.zhu.tool_test.starke.matrix.multipart.core.Data;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ggBall
 * @since 2020-12-27
 */
public interface IDeviceService extends IService<Device> {


    /**
     *新增
     * @param device 设备实体类
     * @return
     */
    public void insert(Device device);

    /**
     * 删除
     * @param id 主键id
     * @return
     */
    public boolean deleteById(Long id);

    /**
     * 更新
     * @param device
     * @return
     */
    public Boolean updateDevice(Device device);

    /**
     * 查询全部设备
     * @return
     */
    List<Device> allDevices();


}
